<!DOCTYPE HTML><html>
<head>
    <? echo $h->meta($title, $kwd, $dpn); ?>
    <? require_once("lib.php"); ?>
</head>
<body>
<? include_once("header.php"); ?>
<div id="wrap">
    <div class="breadcrumb">
        <a href="./"><?=WEB_INDEX_PAGE?></a> &gt; <span><?=$sort_name?></span>
    </div><!--breadcrumb end-->
    <div id="" class="left w720">
        <div class="">
            <div class="h2pros">
                <h2><?=$sort_name?></h2>
            </div>
            <style>
                .tag_li{width: 10%; height: 25px; float: left;}
                .tag_li_title{width:10%; height: 25px; float: left; font-weight: bold}
            </style>
            <script>
//                alert(window.location.href);
            </script>
                <?foreach($product_option_info as $key => $val){
                    ?>
            <ul class="pros">
                    <li class="tag_li_title"><?=$val['name_'.$lang]?>：</li>
                    <?$product_option_value_info = $product_option_value->get_rows(1024, 'product_option_id', $val['id'], 'seq_no');
                    $i = 1;
                    foreach($product_option_value_info as $key_v => $val_v){
                            ?>
                            <li class="tag_li"><a href="<?=$url_all?>"><?=$val_v['name_'.$lang]?></a></li>
                        <?
                        if($i % 8 == 0){
                            echo '<li class="clear"></li><li class="tag_li"></li>';
                        }
                        $i++;
                        }
                    ?>
                    <li class="pro_lace"></li>
            </ul>
                <?
                }?>
                <ul class="pros">
                <li class="tag_li_title">标签：</li>
                <?
                $where_tag_is_filter = array(array('name'=>'is_filter', 'val'=>1, 'opn'=>'='), array('name'=>'type', 'val'=>1, 'opn'=>'='));
                $tag_is_filter_info = $tags->get_rows_advanced(1024, $where_tag_is_filter, 'id', 'desc');
                $i = 1;
                foreach($tag_is_filter_info as $key => $val){
                    ?>
                    <li class="tag_li"><a href="tags_product.php?tag_id=<?=$val['id']?>"><?=$val['name_'.$lang]?></a></li>
                <?
                }
                ?>
                <li class="pro_lace"></li>
            </ul>
            <ul class="pros">
                <?
                $str=''; $k=1;
                foreach($info as $val){
                    $tem_link=seo_url($val['name_'.$lang]).'-p-'.$val['id'].'.html';
                    $tem_pic=PRODUCT_PIC_HOST.$val['small_pic'];
                    $tem_name=str_cut($val['name_'.$lang],PRODUCT_TITLE_DISPLAY_LENGTH,$lang);
                    //$tem_price=round($val['price']*$currency_rate,2);
                    $tem_price=price($val).discount($val);

                    $current=''; if($k%4==1) $current=' d ';
                    $str.='<li class="pros_li'.$current.'">
						<div class="pro_box">
							<div class="pro">
								<div class="image"><a href="'.$tem_link.'"><img src="'.$tem_pic.'" width="'.PRODUCT_SMALL_PIC_WIDTH.'" height="'.PRODUCT_SMALL_PIC_HEIGHT.'" /></a></div>
								<div class="price"><span><span>'.$currency_sign.'</span>'.$tem_price.'</span></div>
								<div class="pname"><a href="'.$tem_link.'">'.$tem_name.'</a></div>
							</div>
						</div>
					</li>';
                    if($k%4==0) $str.='<li class="pro_lace"></li>';
                    $k++;
                }
                $str.='<div class="clear"></div>';
                echo $str;
                echo echo_page($page, $pages, $url.'-p',$lang_id);
                ?>
            </ul>
            <div class="clear"></div>
        </div><!--. featured product-->
    </div><!--# featured_and_ad_right-->
    <div id="" class="w220 right">
        <div class="side_box">
            <div class="side_title"><h3><?=WEB_HOT_ITEMS?></h3></div>
            <div class="side_boxer">
                <ul class="side_pros">
                    <?
                    $str='';
                    foreach($arr_new as $val){
                        $tem_link=seo_url($val['name_'.$lang]).'-p-'.$val['id'].'.html';
                        $tem_pic=PRODUCT_PIC_HOST.$val['small_pic'];
                        $tem_name=str_cut($val['name_'.$lang],PRODUCT_TITLE_DISPLAY_LENGTH,$lang);
                        $tem_price=price($val).discount($val);
                        $curr=''; if($k%4==0) $curr=' d ';
                        $str.='<li class="side_pro">
								<div class="image"><a href="'.$tem_link.'"><img src="'.$tem_pic.'" width="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" height="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" /></a></div>
								<div class="pname"><a href="'.$tem_link.'">'.$tem_name.'</a></div>
								<div class="price red"><strong><span>'.$currency_sign.'</span>'.$tem_price.'</strong></div>
								<div class="clear"></div>
							</li>';
                    }
                    echo $str;
                    ?>
                </ul>
            </div>
        </div>
        <div class="px20"></div>
        <? if($has_history){ ?>
            <div class="side_box history">
                <div class="side_title"><h3><?=WEB_RECENTLY_VIEWED?></h3><a class="hand right clear_his" onclick="history_clear();">&nbsp;</a></div>
                <div class="side_boxer">
                    <ul class="side_pros">
                        <?
                        $str='';
                        foreach($arr_history as $val){
                            $tem_link=seo_url($val['name_'.$lang]).'-p-'.$val['id'].'.html';
                            $tem_pic=PRODUCT_PIC_HOST.$val['small_pic'];
                            $tem_name=str_cut($val['name_'.$lang],PRODUCT_TITLE_DISPLAY_LENGTH,$lang);
                            $tem_price=price($val).discount($val);
                            $curr=''; if($k%4==0) $curr=' d ';
                            $str.='<li class="side_pro">
								<div class="image"><a href="'.$tem_link.'"><img src="'.$tem_pic.'" width="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" height="'.PRODUCT_THUMBNAIL_PIC_WIDTH.'" /></a></div>
								<div class="pname"><a href="'.$tem_link.'">'.$tem_name.'</a></div>
								<div class="price red"><strong><span>'.$currency_sign.'</span>'.$tem_price.'</strong></div>
								<div class="clear"></div>
							</li>';
                        }
                        echo $str;
                        ?>
                    </ul>
                </div>
            </div>
        <? } ?>
    </div><!--right-->
    <div class="clear"></div>
    <div class="px20"></div>
    <div class="clear"></div>
</div>
<? include("footer.php"); ?>
</body>
</html>
